package com.anivia.common.core.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.io.Serializable;

/**
 * 公共id参数dto
 *
 * @author wangj
 */
@Data
@Valid
@Schema
public class IdDTO implements Serializable {
    @Schema(description = "id")
    @NotEmpty(message = "id不能为空")
    private Integer id;
}
